package com.mmall.seckill.service;

import com.mmall.seckill.common.Result;
import com.mmall.seckill.domain.SeckillUser;
import com.mmall.seckill.vo.LoginVo;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by megan on 2018/6/16.
 */
public interface SeckillUserService {

    /**
     * 登录
     * @param response
     * @param loginVo
     * @return
     */
    Result login(HttpServletResponse response,LoginVo loginVo);

    /**
     * 根据token获取用户信息
     * @param token
     * @return
     */
    SeckillUser getByToken(String token);

}
